#!/usr/bin/python

# cursors.py

import wx

class Cursors(wx.Frame):
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, id, title)

        vbox = wx.BoxSizer(wx.VERTICAL)
        sizer = wx.GridSizer(3, 3, 2, 2)

        cursors = [ wx.CURSOR_ARROW, wx.CURSOR_HAND, wx.CURSOR_WATCH, wx.CURSOR_SPRAYCAN, wx.CURSOR_PENCIL,
                    wx.CURSOR_CROSS, wx.CURSOR_QUESTION_ARROW, wx.CURSOR_POINT_LEFT, wx.CURSOR_SIZING]

        for i in cursors:
            panel = wx.Panel(self, -1, style=wx.SUNKEN_BORDER)
            panel.SetCursor(wx.StockCursor(i))
            sizer.Add(panel, flag=wx.EXPAND)

        vbox.Add(sizer, 1, wx.EXPAND | wx.TOP, 5)
        self.SetSizer(vbox)

        self.Centre()
        self.Show()


app = wx.App(0)
Cursors(None, -1, 'Cursors.py')
app.MainLoop()

